package com.wm.eduService.client;

import com.wm.commonutils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: sshdg
 * @Date: 2020/10/6 8:17
 */
@Component
@FeignClient(name = "service-vod", fallback = VodClientImpl.class)
public interface VodClient {
    @DeleteMapping("/eduVod/video/removeAliyunVideo/{id}")
    R removeAliyunVideo(@PathVariable("id") String id);

    @DeleteMapping("/eduVod/video/deleteBatch")
    R deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
